package com.ai_chat.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;

import java.io.Serializable;


public class Topic implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 话题主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 话题名称
     */
    private String title;

    /**
     * 用户外键id
     */
    private Integer userId;

    /**
     * 话题是否被删除
     */
    @TableLogic
    private Boolean deleted;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        return "Topic{" +
            "id = " + id +
            ", title = " + title +
            ", userId = " + userId +
            ", deleted = " + deleted +
        "}";
    }
}
